package com.fl.springcloud.service.impl;

import com.fl.springcloud.dao.PayMentDao;
import com.fl.springcloud.entities.PayMent;
import com.fl.springcloud.service.PaymentService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Component
public class PaymentServiceImp implements PaymentService {
    @Resource
    private PayMentDao dao;
    /*
     * @author fanlei
     * @Date 2021/2/17 16:59
     * @Param [payMent]
     * @return int
     **/
    @Override
    public int save(PayMent payMent) {
        return dao.save(payMent);
    }
    /*
     * @author fanlei
     * @Date 2021/2/17 16:59
     * @Param [id]
     * @return com.fl.springcloud.entities.PayMent
     **/
    @Override
    public PayMent getPaymentById(Long id) {
        return dao.getPaymentById(id);
    }

}
